#include "lib/bbs.h"
#include "ui_MessageEdit.h"
#include <QtDebug>
#include <QtCore>
#include <QCloseEvent>

class MessageEdit : public QWidget , public Ui::MessageEdit{
    Q_OBJECT
    public:
	MessageEdit( Board * board, QString title, QWidget * parent = 0);
	void set(QString title = tr("New Post"), QString text = "");
	void closeEvent(QCloseEvent * event);
    private :
	Board * _board;
	QString _title;
    public slots:
	void on_sendButton_clicked();
};
